NewsParserPlugin\Service\AI\GeminiAIServiceProvider S

Total Complexity 30
Dependencies 6
Dependents 0
Total lines 169
Lines of code 138
Logical lines of code 83
Comment lines 3
Methods 12
Properties 7

Methods 12

Method Rating Maintainability Complexity Lines of code
chat()
A
46 9 38
generateContent()
S
55 3 19
getTextRequestBody()
S
58 3 16
getOptions()
S
56 2 19
__construct()
S
66 3 8
fetchOptions()
S
58 2 15
isAPIKeyDefined()
S
73 2 6
isResposeFormateValid()
S
75 2 4
getName()
S
81 1 3
getWpConfigApiKey()
S
82 1 3
getRequestUrl()
S
74 1 4
retriveContent()
S
80 1 3